package com.cqengine.util;

public class DateUtil {
    public static String getNow(){
        return ""+System.currentTimeMillis();
    }

    public  static String deductTime(String ts,String timeout){
        long now = System.currentTimeMillis();
        Long tsLong = Long.valueOf(ts);
        Long timeOut = Long.valueOf(timeout);

        return now - (tsLong+timeOut) + "";
    }
}
